<template>
  <div class="loading-page">
    <div class="loading"></div>
    <h2 class="progress" v-show="progress">加载进度：{{progress}}</h2>
  </div>
</template>

<script setup>
let props = defineProps({
  progress: Number,
});
</script>

<style scoped>
h3 {
  position: fixed;
  top: 100px;
  left: 50%;
  font-size: 30px;
  font-weight: 900;
}
</style>

<style scoped>

progress {
  position: fixed;
  top: 100px;
  left: 50%;
  font-size: 30px;
  font-weight: 900;
}
.loading-page{
  overflow: hidden;
  width:100vw;
  height: 100vh;
  /*background-image: linear-gradient(-225deg,#473B7B 0%,#3584A7 51%,#30D2BE 100%);*/
  background:
      linear-gradient(
          limegreen,
          transparent
      ),
      linear-gradient(
          90deg,
          skyblue,
          transparent
      ),
      linear-gradient(
          -90deg,
          coral,
          transparent
      );

  background-blend-mode: screen;
}
.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.loading:before,
.loading:after {
  position: absolute;
  width: 20px;
  height: 20px;
  content: "";
  animation: jumping 0.5s infinite alternate;
  background: rgba(0, 0, 0, 0);
}

.loading:before {
  left: 0;
}

.loading:after {
  right: 0;
  animation-delay: 0.15s;
}

@keyframes jumping {
  0% {
    transform: scale(1) translateY(0px) rotateX(0deg);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }

  100% {
    transform: scale(1.2) translateY(-25px) rotateX(45deg);
    background: rgba(24, 144, 255, 0.67);
    box-shadow: 0 25px 40px #000;
  }
}
</style>
